package com.example.seckill.dto;

public class SeckillResult<T> {

    private boolean success;
    private T data;
    private String seror;

    public SeckillResult(boolean success, T data) {
        this.success = success;
        this.data = data;
    }

    public SeckillResult(boolean success, String seror) {
        this.success = success;
        this.seror = seror;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getSeror() {
        return seror;
    }

    public void setSeror(String seror) {
        this.seror = seror;
    }
}
